﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp6
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("张三同学你好，请输入你的学号和班级");
            string name = "张三";
            //输入
            int studentCode = int.Parse(Console.ReadLine());
            int className = int.Parse(Console.ReadLine());

            Student student = new Student(name, studentCode, className);
            student.StudentInfo();

            Student student1 = new Student("李四", 512);
            student1.StudentInfo();

            Student student2 = new Student("王五");
            student2.StudentInfo();
            Console.WriteLine();

            //方法重载
            SumUnitls sumUnitls = new SumUnitls()
;           Console.WriteLine(sumUnitls.Sum(1, 1));
            Console.WriteLine(sumUnitls.Sum(5.5, 3.2));
            Console.WriteLine(sumUnitls.Sum("天堂", "地狱"));
            Console.WriteLine();


            ;
            

        }
    }
}
